package com.bjut.vendormgrsys.web.dto.systemUs;

import com.bjut.vendormgrsys.web.dto.user.UserInfo;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import org.springframework.validation.annotation.Validated;

@Data
@Validated
public class SystemUsInfo {

    @JsonProperty("id")
    private String id = null;

    @JsonProperty("creatorId")
    private String creatorId = null;

    @JsonProperty("creator")
    private UserInfo creator = null;

    @JsonProperty("title")
    private String title = null;

    @JsonProperty("content")
    private String content = null;

    /**
     * 状态： NEW, PUBLISHED, REVOKE
     */
    @JsonProperty("status")
    private String status = null;

    @JsonProperty("publishedTime")
    private String publishedTime = null;

    /**
     * 创建时间
     */
    @JsonProperty("dateCreated")
    private Long dateCreated;

    /**
     * 最后修改时间
     */
    @JsonProperty("lastUpdated")
    private Long lastUpdated;

    public SystemUsInfo() {
    }
}
